﻿using System.Collections.Specialized;
using System.Configuration;

namespace WinForm.Common
{
    public class ConfigInfo
    {
        public string FtpServer { get; private set; }
        public string FtpUserId { get; private set; }
        public string FtpPassword { get; private set; }

        /// <summary>
        /// 实例信息
        /// </summary>
        public static ConfigInfo Instance = new ConfigInfo();

        private ConfigInfo()
        {
            NameValueCollection config = (NameValueCollection)ConfigurationManager.GetSection("FtpServerInfo");
            FtpServer = config["FtpServer"] ?? "10.2.2.28";
            FtpUserId = config["FtpUserId"] ?? "liyanwei";
            FtpPassword = config["FtpPassword"] ?? "liyanwei";
        }

    }
}
